<!-- 发表文章模态框 -->
<button type="button" class="btn btn-default btn-link btn-lg" data-toggle="modal" data-target="#myModal">
    发表文章
</button>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">发表文章</h4>
            </div>
            <div class="modal-body">
                <!--文章发布区域-->
                <form method="post" action="/post">
                    <div class="form-group">
                        <label for="exampleInputPassword1">标题</label>
                        <input type="text" name="title" class="form-control" id="exampleInputPassword1" placeholder="请输入标题">
                    </div>
                    <div class="form-group">
                        <label for="exampleText">正文</label>
                        <textarea class="form-control" name="content" rows="3" id="exampleText" placeholder="知乎,带你看世界..."></textarea>
                    </div>
                    <!--两个按钮-->
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default quxiao" data-dismiss="modal">取消</button>
                        <button type="submit" class="btn btn-primary">保存</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>